package com.hd.entity;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "advert")
public class Advert {
  @Id
  private long advertid;
  private long sid;
  private long adstatus;
  private java.sql.Timestamp starttime;
  private java.sql.Timestamp endtime;
  private double adprice;


  public long getAdvertid() {
    return advertid;
  }

  public void setAdvertid(long advertid) {
    this.advertid = advertid;
  }


  public long getSid() {
    return sid;
  }

  public void setSid(long sid) {
    this.sid = sid;
  }


  public long getAdstatus() {
    return adstatus;
  }

  public void setAdstatus(long adstatus) {
    this.adstatus = adstatus;
  }


  public java.sql.Timestamp getStarttime() {
    return starttime;
  }

  public void setStarttime(java.sql.Timestamp starttime) {
    this.starttime = starttime;
  }


  public java.sql.Timestamp getEndtime() {
    return endtime;
  }

  public void setEndtime(java.sql.Timestamp endtime) {
    this.endtime = endtime;
  }


  public double getAdprice() {
    return adprice;
  }

  public void setAdprice(double adprice) {
    this.adprice = adprice;
  }

  @Override
  public String toString() {
    return "Advert{" +
            "advertid=" + advertid +
            ", sid=" + sid +
            ", adstatus=" + adstatus +
            ", starttime=" + starttime +
            ", endtime=" + endtime +
            ", adprice=" + adprice +
            '}';
  }
}
